﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace AbpEntityFrameworkcore.Migrations
{
    /// <inheritdoc />
    public partial class _2025513 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "Info",
                table: "TaskOrder",
                type: "nvarchar(max)",
                nullable: true);


            migrationBuilder.CreateTable(
                name: "TaskInfo",
                columns: table => new
                {
                    TaskInfo_id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsFinsih = table.Column<bool>(type: "bit", nullable: false),
                    StartName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    EndName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Type = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_TaskInfo", x => x.TaskInfo_id);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "TaskInfo");

            migrationBuilder.DropColumn(
                name: "Info",
                table: "TaskOrder");

        }
    }
}
